<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/skin/css/index.css" rel="stylesheet" type="text/css" />
<script src="/skin/js/jquery.js"></script>
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<title>产品搜索-{$sys[webname]}</title>
</head>
<body>
<header id="header">
	<section class="head-b head-b1">
		<span class="u-left"><a href="javascript:history.go(-1);" class="back"><img src="/skin/img/back.png"/></a></span>
		<h1 id="t0">{$keyword}</h1>
		<div class="u-right" href="#">
			<a href="/" class="hSearch right"><img src="/skin/img/i_home.png"/></a>
		</div>
	</section>
</header>

<div class="main">
	<div class="search">
		<form action="search.php" method="get">
			<input type="text" name="key" placeholder='请输入关键词' /><input type="submit" name="submit" value="搜索" />
		</form>
	</div>

	<div class="goodlist">
		{if($msg==1)}
		<ul class="clearfix">			
			{loop $slist $key as $list}
			<li>
					<a class="gd" href="goods.php?id={$list[Id]}">
						<img src="{$list[gthumb]}" />
						<p class="p1">{$list[gname]}</p>
						<p class="p3">
							<span class="s1">会员：{$list[cash]}元 </span>
							<span class="s2">库存：{$list[gtotal]}</span>
						</p>
						<p class="p2">
							<span class="s1">置换费：{if($list['kuaidif'])}{$list[kuaidif]}{else}包邮{/if}</span>
							<span class="s2">销量：{$list[selltotal]}</span>
						</p>
					</a>
					<p class="p4">
						<a class="buy" href="javascript:" onclick="order({$list[Id]})">立即购买</a>
						
					</p>
				</li>
			{/loop}			
		</ul>
		{$page}
		{else}		
		<p class="none">暂无信息</p>
		{/if}
	</div>
</div>
<div class="login">
	<script>			
		var bodyWidth = document.documentElement.clientWidth / 6.4;
		if (bodyWidth > 100) {
			document.documentElement.style.fontSize = 100 + "px";		
		} else {
			document.documentElement.style.fontSize = bodyWidth + "px";
		}
	</script>
</div>
</body>
</html>